Skip to main content

Error Handling

Error Handling​

Token Request Errors​

401 Unauthorized:

  • Invalid client_id or client_secret
  • Solution: Verify your credentials

400 Bad Request:

  • Missing required fields
  • Solution: Ensure grant_type, client_id, and client_secret are provided

Contract Creation Errors​

401 Unauthorized:

  • Invalid or expired access token
  • Solution: Request a new token

400 Bad Request:

  • Missing required fields
  • Invalid field values
  • Check `validationErrors` array in response for details

Example Error Response:

{
"message": "Validation failed",
"status": 400,
"validationErrors": [
{
"field": "amount",
"message": "Amount must be greater than 0"
}
]
}